import request from '@/utils/request'

// 查询经营范围列表
export function listBusinessScope(query) {
  return request({
    url: '/zp/businessScope/list',
    method: 'get',
    params: query
  })
}

// 查询经营范围详细
export function getBusinessScope(id) {
  return request({
    url: '/zp/businessScope/' + id,
    method: 'get'
  })
}

// 新增经营范围
export function addBusinessScope(data) {
  return request({
    url: '/zp/businessScope',
    method: 'post',
    data: data
  })
}

// 修改经营范围
export function updateBusinessScope(data) {
  return request({
    url: '/zp/businessScope',
    method: 'put',
    data: data
  })
}

// 删除经营范围
export function delBusinessScope(id) {
  return request({
    url: '/zp/businessScope/' + id,
    method: 'delete'
  })
}
